package com.asset.dispoal.business.repayment.domain.db.mapper;

import com.asset.dispoal.business.repayment.domain.db.entity.BsCaseRepayment;
import org.apache.ibatis.annotations.Mapper;

/**
 * @description:
 * @author: yf
 * @date: 2022-09-30 09:59:50
 */
@Mapper
public interface CaseRepaymentMapper {

    BsCaseRepayment queryByCaseId(String caseId, String caseState);

    /**
     * 数据单条插入
     *
     * @param bsCaseRepayment
     * @return
     */
    int insert(BsCaseRepayment bsCaseRepayment);

    /**
     * 根据id更新数据
     *
     * @param bsCaseRepayment
     * @return
     */
    int update(BsCaseRepayment bsCaseRepayment);

    /**
     * 根据id查询数据
     *
     * @param repaymentId
     * @return
     */
    BsCaseRepayment queryById(String repaymentId);
}
